package com.example.demo.util;

import com.example.demo.domain.Girl;
import com.example.demo.domain.Result;

public class ResultUtil {
	
	public static Result<Girl> success(Girl girl) {
		
		Result<Girl> result = new Result<Girl>();
		
		result.setCode(0);
		result.setMsg("成功");
		result.setData(girl);
		
		return result;
	}
	
	public static Result<Girl> success() {
		return null;
	}
	public static Result<Girl> error(Integer code,String msg) {
		
		Result<Girl> result = new Result<Girl>();
		result.setCode(code);
		result.setMsg(msg);
		return result;
	}

}
